<?php
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * @copyright   Copyright (c) 2014 X.commerce, Inc. (http://www.magentocommerce.com)
 * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
?>
<?php /** @var $this \Magento\Backend\Block\Page */ ?>
<!doctype html>
<html lang="<?php echo $this->getLang() ?>" class="no-js">

<head>
    <?php echo $this->getChildHtml('head') ?>
</head>

<body id="html-body"<?php echo $this->getBodyClass() ? ' class="' . $this->getBodyClass() . '"' : ''; ?> data-container="body" data-mage-init='{"loaderAjax":{},"loader":{}}'>
    <div class="page-wrapper">
        <?php echo $this->getChildHtml('notification_window'); ?>
        <?php echo $this->getChildHtml('global_notices') ?>
        <div class="page-header-wrapper">
            <?php echo $this->getChildHtml('header') ?>
        </div>
        <?php echo $this->getChildHtml('menu') ?>
        <?php echo $this->getChildHtml('notifications'); ?>

        <section class="page-content" id="anchor-content">
            <?php echo $this->getChildHtml('main-top'); ?>
            <div id="messages" data-container-for="messages" class="messages">
                <?php echo $this->getLayout()->getMessagesBlock()->getGroupedHtml() ?>
            </div>
            <?php echo $this->getChildHtml('page_main_actions'); ?>
            <?php if($this->getChildHtml('left')): ?>
                <div id="page:main-container" class="<?php echo $this->getContainerCssClass() ?> col-2-left-layout">
                    <div class="main-col" id="content">
                        <?php echo $this->getChildHtml('content') ?>
                    </div>

                    <div class="side-col" id="page:left">
                        <?php echo $this->getChildHtml('left') ?>
                    </div>
                </div>
            <?php else: ?>
                <div id="page:main-container" class="col-1-layout">
                    <?php echo $this->getChildHtml('content') ?>
                </div>
            <?php endif; ?>
        </section>

        <?php echo $this->getChildHtml('js') ?>
        <div class="page-footer-wrapper">
            <?php echo $this->getChildHtml('footer') ?>
        </div>
    </div>
    <?php echo $this->getChildHtml('before_body_end') ?>
    <!-- TODO: remove this popup after refactoring of "varienLoader.js" file -->
    <div class="loading-old" id="loading-mask" style="display:none;">
        <div class="loader" id="loading_mask_loader"><p><?php echo __('Please wait...') ?></p></div>
    </div>
</body>
</html>